package com.changgou.entity;

public enum  ExceptionResultCode {

    GOODS_STATUS_ERROR("商品状态不合法,异常操作",4001, false),
    TIMEOUT_ERROR("对不起网络开小差啦,请稍后重试",5001, false),
    PARAMTER_ERROR("参数不合法",5002, false),
    BRAND_NOT_EXIST("品牌数据不存在，无法进行修改",5003,false),
    UNKNOWN_ERROR("未知异常",5004, false),
    ;

    private String message;
    private Integer code;
    private boolean flag;

    ExceptionResultCode(String message, Integer code, boolean flag) {
        this.message = message;
        this.code = code;
        this.flag = flag;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "ExceptionResultCode{" +
                "message='" + message + '\'' +
                ", code=" + code +
                ", flag=" + flag +
                '}';
    }
}
